package com.itheima.mall.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 商品限时购与商品关系表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sms_flash_promotion_product_relation")
public class FlashPromotionProductRelation {

    private Long id;                    //编号
    private Long flashPromotionId;
    private Long flashPromotionSessionId;       //编号
    private Long productId;
    private BigDecimal flashPromotionPrice;     //限时购价格
    private Integer flashPromotionCount;        //限时购数量
    private Integer flashPromotionLimit;        //每人限购数量
    private Integer sort;               //排序

    @TableField(exist = false)
    private Product product; //关联商品列表

}
